﻿
namespace NClass.StubLanguage
{
	public class StubConstructor : Core.Constructor
	{
		public StubConstructor(Core.CompositeType parent)
			: base(parent)
		{
			Name = parent != null ? parent.Name : null;
		}

		public override string Name { get; set; }

		public override Core.Operation Clone(Core.CompositeType newParent)
		{
			return new StubConstructor(newParent);
		}

		public override Core.Language Language { get { return StubLanguage.Instance; } }

		public override void InitFromString(string declaration)
		{
			// Do Nothing
		}

		public override string GetDeclaration()
		{
			return Name;
		}
	}
}
